using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using THSLib;
using THSERP.BaseProvider;

namespace THSERP.Modules.ProcessFood.UI
{
	/// <summary>
	/// Summary description for DMPF100
	/// </summary>
	public partial class DMPF100 : THSERPScreen
	{

		public DMPF100()
		{
			//
			// Required designer variable
			//
			InitializeComponent();
        }

        private void fld_btnShowFoodGroups_Click(object sender, EventArgs e)
        {
            ((Modules.ProcessFood.ProcessFoodModule)this.Module).ShowFoodCategoryTree();
        }

        private void fld_btnAddItemToProcessFoodItemList_Click(object sender, EventArgs e)
        {
            ((Modules.ProcessFood.ProcessFoodModule)this.Module).AddItemToProcessFoodItemsList();
        }

        private void fld_btnChangeItemFromProcessFoodItemsList_Click(object sender, EventArgs e)
        {
            ((Modules.ProcessFood.ProcessFoodModule)this.Module).ChangeItemFromProcessFoodItemsList();
        }

        private void fld_btnRemoveItemFromProcessFoodItemsList_Click(object sender, EventArgs e)
        {
            ((Modules.ProcessFood.ProcessFoodModule)this.Module).DeleteItemFromProcessFoodItemsList();
        }

        private void fld_lkeFK_ICProductID_Validated(object sender, EventArgs e)
        {
            ((Modules.ProcessFood.ProcessFoodModule)this.Module).THSProductLookupEdit_Validated(sender, e);
        }

        private void fld_txtICProcessFoodItemProductQty_Validated(object sender, EventArgs e)
        {
            ((Modules.ProcessFood.ProcessFoodModule)this.Module).ProductQtyTextEdit_Validated(sender, e);
        }
	}
}
